package com.credithc.customers.manager;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author zhukai
 */
@SpringBootApplication(scanBasePackages = {"com.credithc"})
@EnableEurekaClient
@EnableFeignClients("com.credithc")
@MapperScan({"com.credithc.customers.base.mapper","com.credithc.customers.manager.mapper","com.credithc.baseserv.quartz.mapper","com.credithc.baseserv.log.mapper"})
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableAsync
@EnableScheduling
public class CustomersManagerServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(CustomersManagerServiceApplication.class, args);
    }
}
